All Packages Class Hierarchy This Package Previous Next Index
Interface sun.server.util.FetchContents
- public interface FetchContents
This is the interface that is invoked when the cache
misses. This is application specific logic to fetch the
URL Contents given a URL. The contents returned are then
cached by the DiskCache interface. This is invoked only when
there is a cache miss.
-
fetch(URL)
- The method that is invoked when there is a cache miss.
fetch
public abstract URLContents fetch(URL url) throws IOException
- The method that is invoked when there is a cache miss.
- Parameters:
- url - - The URL for which there was a cache miss.
- The - URLContents which describe the contents of the URL.
- Throws: IOException
- when there is an IOException while fetching the
contents.
All Packages Class Hierarchy This Package Previous Next Index